package com.lk.service.Impl;

import com.lk.bean.Clazz;
import com.lk.mapper.ClazzMapper;
import com.lk.service.ClazzService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;

@Service
public class ClazzServiceImpl implements ClazzService {

    @Resource
    private ClazzMapper clazzMapper;

    @Override
    public Clazz findByName(String name) {
        return clazzMapper.findByName(name);
    }

    @Override
    public Integer deleteClazz(Integer[] ids) {
        return clazzMapper.deleteClazz(ids);
    }

    @Override
    public int addClazz(Clazz clazz) {
        return clazzMapper.addClazz(clazz);
    }

    @Override
    public int updateClazz(Clazz clazz) {
        return clazzMapper.updateClazz(clazz);
    }

    @Override
    public List<Clazz> getClazzList(Clazz clazz) {
        return clazzMapper.getClazzList(clazz);
    }
}
